<?php
session_start();
include_once 'OpenApiV3.php';
include_once '../web_inc.php';
include_once ROOT_PATH.'/config/db_conn.php';
?>

<?php

class getInfo{
	public $openid;
	public $openkey;
	public $pf;

	function get_user_info($sdk, $openid, $openkey, $pf)
    {
	        $params = array(
		                          'openid' => $openid,
	                              'openkey' => $openkey,
		                          'pf' => $pf,
                                	);
	
	      $script_name = '/v3/user/get_info';
	      return $sdk->api($script_name, $params,'post');
   }


   function check($appid,$appkey,$server_name,$openid,$openkey, $pf){
        $sdk = new OpenApiV3($appid, $appkey);
        $sdk->setServerName($server_name);
        $ret=$this->get_user_info($sdk, $openid, $openkey, $pf);
        echo "5576767";
		print_r($ret);
   }


}


$openid = $_GET[openid];
$openkey =$_GET[openkey];
$pf = $_GET[pf];
$appid = '100689948';
$appkey = 'ac26844d417043e73215cd84646018fe';
$server_name = '119.147.19.43';//http://wiki.open.qq.com/wiki/API3.0%E6%96%87%E6%A1%A3 



$get_info=new getInfo();
$get_info->check($appid,$appkey,$server_name,$openid,$openkey, $pf);



?>


